package cn.uai.activiti8.enums;

/**
 * @desc HTTP业务响应码枚举值
 * @author uai
 * @version 1.0
 * @since 2025年06月21日 15:13
 */
public enum RespCodeEnum {

    SUCCESS(1000, "成功"),
    TASK_NOT_FOUND(2001, "审批任务不存在或任务已完成"),
    TASK_HAS_BEEN_SIGNED(2002, "审批任务已经被其他用户签收"),
    TASK_TRANSFER_EXCEPTION(2003, "审批转办异常"),
    USER_NOT_EXIST(3001, "用户不存在"),
    FAIL(9000, "失败");

    private final Integer code;

    private final String message;

    RespCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return this.code;
    }
    public String getMessage() {
        return this.message;
    }
}
